package ru.padre386.geo_utils.data_loaders.gpx.domain;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: indrdb
 * Date: 04.02.2011
 * Time: 14:22:27
 */
public class GpxSegment {
    List<GpxPoint> points;

    public List<GpxPoint> getPoints() {
        return points;
    }

    public void setPoints(List<GpxPoint> points) {
        this.points = points;
    }

    public void addPoint(GpxPoint point) {
        if (points == null) {
            points = new ArrayList<GpxPoint>();
        }
        points.add(point);
    }
}
